package com.company.test.collections;

import java.util.HashMap;

/**
 * @author zhangyan
 * @version $ Id: HashMapDemo.java, v 0.1 2020/9/8 17:52 zhangyan Exp $
 */
public class HashMapDemo {
    public static void main(String[] args) {
        HashMap map = new HashMap(16,0.75f);
        User user1 = new User(1, "1");
        User user2 = new User(1, "2");
        User user3 = new User(1, "3");
        User user4 = new User(1, "4");
        User user5 = new User(1, "5");
        User user6 = new User(1, "6");
        User user7 = new User(1, "7");
        User user8 = new User(1, "8");
        User user9 = new User(1, "9");
        User user10 = new User(1, "10");
        map.put(user1,"aa");
        map.put(user2,"bb");
        map.put(user3,"cc");
        map.put(user4,"dd");
        map.put(user5,"ee");
        map.put(user6,"ff");
        map.put(user7,"gg");
        map.put(user8,"hh");
        map.put(user9,"ii");
        map.put(user10,"kk");
    }
}
